package June12;

import java.util.Scanner;

public class Array {
	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		int[] a = new int[5];
		System.out.println("请输入五个数：");
		for (int i = 0; i < a.length; i++) {
			a[i] = input.nextInt();
		}

		for (int i = 0; i < a.length - 1; i++) {
			for (int j = i + 1; j < a.length; j++) {
				if (a[i] == a[j]) {
					System.out.println("数组中存在重复的元素");
					return;
				}
			}
		}
		System.out.println("数组中不存在重复的元素");
	}
}
